package com.qsw.paper.utils;


/**
 * ThreadLocal 工具类
 */
public class ThreadLocalUtil {
    private static final ThreadLocal<Integer> THREAD_LOCAL = new ThreadLocal<>();


    public static Integer getId() {
        return THREAD_LOCAL.get();
    }


    public static void setId(Integer id) {
        THREAD_LOCAL.set(id);
    }


    public static void remove() {
        THREAD_LOCAL.remove();
    }
}
